﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="T2.WebSecurity.Business.Workflows.UserProfileNonQuery"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:twb="clr-namespace:T2.WebSecurity.Business;assembly=T2.WebSecurity.Business.Entities"
 xmlns:twbei="clr-namespace:T2.WebSecurity.Business.Entities.Interfaces;assembly=T2.WebSecurity.Business.Entities"
 xmlns:twbwa="clr-namespace:T2.WebSecurity.Business.Workflow.Activites;assembly=T2.WebSecurity.Business.Workflow.Activities"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="BusinessService" Type="InArgument(twb:IBusinessService)" />
    <x:Property Name="Param" Type="InArgument(twbei:IUserProfile_biz)" />
    <x:Property Name="RetVal" Type="OutArgument(scg:IDictionary(x:String, x:Int32))" />
    <x:Property Name="RoleNames" Type="InArgument(s:String[])" />
    <x:Property Name="UserId" Type="InArgument(x:Int32)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>T2.WebSecurity.Business.Workflows.ApplicationController_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>T2.WebSecurity.Business</x:String>
      <x:String>T2.WebSecurity.Business.Entities.Interfaces</x:String>
      <x:String>T2.WebSecurity.Business.Entities.Search.Interfaces</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>EntityFramework</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Common</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Data</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Logging</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Logging.Database</AssemblyReference>
      <AssemblyReference>Microsoft.Practices.EnterpriseLibrary.Validation</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Configuration</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Management</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Transactions</AssemblyReference>
      <AssemblyReference>System.Web</AssemblyReference>
      <AssemblyReference>System.Web.ApplicationServices</AssemblyReference>
      <AssemblyReference>System.Web.Providers</AssemblyReference>
      <AssemblyReference>System.Web.Services</AssemblyReference>
      <AssemblyReference>System.Workflow.Activities</AssemblyReference>
      <AssemblyReference>System.Workflow.ComponentModel</AssemblyReference>
      <AssemblyReference>System.Workflow.Runtime</AssemblyReference>
      <AssemblyReference>System.WorkflowServices</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>WebMatrix.WebData</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Business.Entities</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Business.Workflow.Activities</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Common</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Data</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>T2.WebSecurity.Business</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Flowchart sap2010:WorkflowViewState.IdRef="Flowchart_2">
    <Flowchart.Variables>
      <Variable x:TypeArguments="twbei:IApplicationUser_biz[]" Name="userApplications" />
    </Flowchart.Variables>
    <Flowchart.StartNode>
      <FlowSwitch x:TypeArguments="x:String" x:Name="__ReferenceID0" sap2010:WorkflowViewState.IdRef="FlowSwitch`1_3">
        <FlowSwitch.Expression>
          <mca:CSharpValue x:TypeArguments="x:String">Param.Action</mca:CSharpValue>
        </FlowSwitch.Expression>
        <FlowStep x:Key="Add" x:Name="__ReferenceID1" sap2010:WorkflowViewState.IdRef="FlowStep_24">
          <Sequence DisplayName="Add Sequence" sap2010:WorkflowViewState.IdRef="Sequence_2">
            <If DisplayName="If super admin" sap2010:WorkflowViewState.IdRef="If_2">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("super admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <twbwa:Db_T2_WebSecurity_UserProfile_Add DisplayName="UserProfile_Add" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_UserProfile_Add_1">
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.AddParam>
                    <InArgument x:TypeArguments="twbei:IUserProfile_biz">
                      <mca:CSharpValue x:TypeArguments="twbei:IUserProfile_biz">Param</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.AddParam>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.BS>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.RetVal>
                    <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                      <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.RetVal>
                </twbwa:Db_T2_WebSecurity_UserProfile_Add>
              </If.Then>
              <If.Else>
                <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
                  <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll DisplayName="ApplicationUser_GetAll" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationUser_GetAll_3">
                    <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.BS>
                      <InArgument x:TypeArguments="twb:IBusinessService">
                        <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.BS>
                    <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.RetVal>
                      <OutArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationUser_biz[]">userApplications</mca:CSharpReference>
                      </OutArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.RetVal>
                  </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll>
                  <Assign DisplayName="Assign Apps of User" sap2010:WorkflowViewState.IdRef="Assign_3">
                    <Assign.To>
                      <OutArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationUser_biz[]">userApplications</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpValue x:TypeArguments="twbei:IApplicationUser_biz[]" xml:space="preserve">userApplications
                .Where(f =&gt; f.UserId == UserId)
                .ToArray()</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <If DisplayName="If User in Application" sap2010:WorkflowViewState.IdRef="If_1">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">userApplications.Count()&lt;=0</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_3" Reason="Permission Denied">
                        <TerminateWorkflow.Exception>
                          <InArgument x:TypeArguments="s:Exception">
                            <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                          </InArgument>
                        </TerminateWorkflow.Exception>
                      </TerminateWorkflow>
                    </If.Then>
                  </If>
                </Sequence>
              </If.Else>
            </If>
            <If DisplayName="If app admin" sap2010:WorkflowViewState.IdRef="If_3">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("application admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <twbwa:Db_T2_WebSecurity_UserProfile_Add DisplayName="UserProfile_Add" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_UserProfile_Add_2">
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.AddParam>
                    <InArgument x:TypeArguments="twbei:IUserProfile_biz">
                      <mca:CSharpValue x:TypeArguments="twbei:IUserProfile_biz">Param</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.AddParam>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.BS>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.RetVal>
                    <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                      <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.RetVal>
                </twbwa:Db_T2_WebSecurity_UserProfile_Add>
              </If.Then>
            </If>
            <If DisplayName="If admin" sap2010:WorkflowViewState.IdRef="If_4">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <twbwa:Db_T2_WebSecurity_UserProfile_Add DisplayName="UserProfile_Add" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_UserProfile_Add_3">
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.AddParam>
                    <InArgument x:TypeArguments="twbei:IUserProfile_biz">
                      <mca:CSharpValue x:TypeArguments="twbei:IUserProfile_biz">Param</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.AddParam>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.BS>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Add.RetVal>
                    <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                      <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Add.RetVal>
                </twbwa:Db_T2_WebSecurity_UserProfile_Add>
              </If.Then>
            </If>
            <If DisplayName="If user" sap2010:WorkflowViewState.IdRef="If_5">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("user")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_4" Reason="Permission Denied">
                  <TerminateWorkflow.Exception>
                    <InArgument x:TypeArguments="s:Exception">
                      <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                    </InArgument>
                  </TerminateWorkflow.Exception>
                </TerminateWorkflow>
              </If.Then>
            </If>
          </Sequence>
        </FlowStep>
        <FlowStep x:Key="Update" x:Name="__ReferenceID2" sap2010:WorkflowViewState.IdRef="FlowStep_25">
          <Sequence DisplayName="Update Sequence" sap2010:WorkflowViewState.IdRef="Sequence_4">
            <If DisplayName="If super admin" sap2010:WorkflowViewState.IdRef="If_7">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("super admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <twbwa:Db_T2_WebSecurity_UserProfile_Modify DisplayName="UserProfile_Modify" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_UserProfile_Modify_1">
                  <twbwa:Db_T2_WebSecurity_UserProfile_Modify.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Modify.BS>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Modify.ModifyParam>
                    <InArgument x:TypeArguments="twbei:IUserProfile_biz">
                      <mca:CSharpValue x:TypeArguments="twbei:IUserProfile_biz">Param</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Modify.ModifyParam>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Modify.RetVal>
                    <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                      <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Modify.RetVal>
                </twbwa:Db_T2_WebSecurity_UserProfile_Modify>
              </If.Then>
              <If.Else>
                <Sequence sap2010:WorkflowViewState.IdRef="Sequence_3">
                  <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll DisplayName="ApplicationUser_GetAll" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationUser_GetAll_4">
                    <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.BS>
                      <InArgument x:TypeArguments="twb:IBusinessService">
                        <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.BS>
                    <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.RetVal>
                      <OutArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationUser_biz[]">userApplications</mca:CSharpReference>
                      </OutArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.RetVal>
                  </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll>
                  <Assign DisplayName="Assign Apps of User" sap2010:WorkflowViewState.IdRef="Assign_4">
                    <Assign.To>
                      <OutArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationUser_biz[]">userApplications</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpValue x:TypeArguments="twbei:IApplicationUser_biz[]" xml:space="preserve">userApplications
                .Where(f=&gt;f.UserId==UserId)
                .ToArray()</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <If DisplayName="If User in Application" sap2010:WorkflowViewState.IdRef="If_6">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">userApplications.Count()&lt;=0</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_5" Reason="Permission Denied">
                        <TerminateWorkflow.Exception>
                          <InArgument x:TypeArguments="s:Exception">
                            <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                          </InArgument>
                        </TerminateWorkflow.Exception>
                      </TerminateWorkflow>
                    </If.Then>
                  </If>
                </Sequence>
              </If.Else>
            </If>
            <If DisplayName="If app admin" sap2010:WorkflowViewState.IdRef="If_8">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("application admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <twbwa:Db_T2_WebSecurity_UserProfile_Modify DisplayName="UserProfile_Modify" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_UserProfile_Modify_2">
                  <twbwa:Db_T2_WebSecurity_UserProfile_Modify.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Modify.BS>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Modify.ModifyParam>
                    <InArgument x:TypeArguments="twbei:IUserProfile_biz">
                      <mca:CSharpValue x:TypeArguments="twbei:IUserProfile_biz">Param</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Modify.ModifyParam>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Modify.RetVal>
                    <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                      <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Modify.RetVal>
                </twbwa:Db_T2_WebSecurity_UserProfile_Modify>
              </If.Then>
            </If>
            <If DisplayName="If admin" sap2010:WorkflowViewState.IdRef="If_9">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_10" Reason="Permission Denied">
                  <TerminateWorkflow.Exception>
                    <InArgument x:TypeArguments="s:Exception">
                      <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                    </InArgument>
                  </TerminateWorkflow.Exception>
                </TerminateWorkflow>
              </If.Then>
            </If>
            <If DisplayName="If user" sap2010:WorkflowViewState.IdRef="If_10">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("user")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_6" Reason="Permission Denied">
                  <TerminateWorkflow.Exception>
                    <InArgument x:TypeArguments="s:Exception">
                      <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                    </InArgument>
                  </TerminateWorkflow.Exception>
                </TerminateWorkflow>
              </If.Then>
            </If>
          </Sequence>
        </FlowStep>
        <FlowStep x:Key="Remove" x:Name="__ReferenceID3" sap2010:WorkflowViewState.IdRef="FlowStep_26">
          <Sequence DisplayName="Remove Sequence" sap2010:WorkflowViewState.IdRef="Sequence_6">
            <If DisplayName="If super admin" sap2010:WorkflowViewState.IdRef="If_12">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("super admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <twbwa:Db_T2_WebSecurity_UserProfile_Remove DisplayName="UserProfile_Remove" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_UserProfile_Remove_1">
                  <twbwa:Db_T2_WebSecurity_UserProfile_Remove.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Remove.BS>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Remove.RemoveParam>
                    <InArgument x:TypeArguments="twbei:IUserProfile_biz">
                      <mca:CSharpValue x:TypeArguments="twbei:IUserProfile_biz">Param</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Remove.RemoveParam>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Remove.RetVal>
                    <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                      <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Remove.RetVal>
                </twbwa:Db_T2_WebSecurity_UserProfile_Remove>
              </If.Then>
              <If.Else>
                <Sequence sap2010:WorkflowViewState.IdRef="Sequence_5">
                  <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll DisplayName="ApplicationUser_GetAll" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_ApplicationUser_GetAll_5">
                    <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.BS>
                      <InArgument x:TypeArguments="twb:IBusinessService">
                        <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                      </InArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.BS>
                    <twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.RetVal>
                      <OutArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationUser_biz[]">userApplications</mca:CSharpReference>
                      </OutArgument>
                    </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll.RetVal>
                  </twbwa:Db_T2_WebSecurity_ApplicationUser_GetAll>
                  <Assign DisplayName="Assign Apps of User" sap2010:WorkflowViewState.IdRef="Assign_5">
                    <Assign.To>
                      <OutArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpReference x:TypeArguments="twbei:IApplicationUser_biz[]">userApplications</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="twbei:IApplicationUser_biz[]">
                        <mca:CSharpValue x:TypeArguments="twbei:IApplicationUser_biz[]" xml:space="preserve">userApplications
                .Where(f=&gt;f.UserId==UserId)
                .ToArray()</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <If DisplayName="If User in Application" sap2010:WorkflowViewState.IdRef="If_11">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">userApplications.Count()&lt;=0</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_7" Reason="Permission Denied">
                        <TerminateWorkflow.Exception>
                          <InArgument x:TypeArguments="s:Exception">
                            <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                          </InArgument>
                        </TerminateWorkflow.Exception>
                      </TerminateWorkflow>
                    </If.Then>
                  </If>
                </Sequence>
              </If.Else>
            </If>
            <If DisplayName="If app admin" sap2010:WorkflowViewState.IdRef="If_13">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("application admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <twbwa:Db_T2_WebSecurity_UserProfile_Remove DisplayName="UserProfile_Remove" sap2010:WorkflowViewState.IdRef="Db_T2_WebSecurity_UserProfile_Remove_2">
                  <twbwa:Db_T2_WebSecurity_UserProfile_Remove.BS>
                    <InArgument x:TypeArguments="twb:IBusinessService">
                      <mca:CSharpValue x:TypeArguments="twb:IBusinessService">BusinessService</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Remove.BS>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Remove.RemoveParam>
                    <InArgument x:TypeArguments="twbei:IUserProfile_biz">
                      <mca:CSharpValue x:TypeArguments="twbei:IUserProfile_biz">Param</mca:CSharpValue>
                    </InArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Remove.RemoveParam>
                  <twbwa:Db_T2_WebSecurity_UserProfile_Remove.RetVal>
                    <OutArgument x:TypeArguments="scg:IDictionary(x:String, x:Int32)">
                      <mca:CSharpReference x:TypeArguments="scg:IDictionary(x:String, x:Int32)">RetVal</mca:CSharpReference>
                    </OutArgument>
                  </twbwa:Db_T2_WebSecurity_UserProfile_Remove.RetVal>
                </twbwa:Db_T2_WebSecurity_UserProfile_Remove>
              </If.Then>
            </If>
            <If DisplayName="If admin" sap2010:WorkflowViewState.IdRef="If_14">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("admin")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_9" Reason="Permission Denied">
                  <TerminateWorkflow.Exception>
                    <InArgument x:TypeArguments="s:Exception">
                      <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                    </InArgument>
                  </TerminateWorkflow.Exception>
                </TerminateWorkflow>
              </If.Then>
            </If>
            <If DisplayName="If user" sap2010:WorkflowViewState.IdRef="If_15">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">RoleNames.Contains("user")</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <TerminateWorkflow sap2010:WorkflowViewState.IdRef="TerminateWorkflow_8" Reason="Permission Denied">
                  <TerminateWorkflow.Exception>
                    <InArgument x:TypeArguments="s:Exception">
                      <mca:CSharpValue x:TypeArguments="s:Exception">new Exception("Not authorized")</mca:CSharpValue>
                    </InArgument>
                  </TerminateWorkflow.Exception>
                </TerminateWorkflow>
              </If.Then>
            </If>
          </Sequence>
        </FlowStep>
      </FlowSwitch>
    </Flowchart.StartNode>
    <x:Reference>__ReferenceID0</x:Reference>
    <x:Reference>__ReferenceID1</x:Reference>
    <x:Reference>__ReferenceID2</x:Reference>
    <x:Reference>__ReferenceID3</x:Reference>
    <sads:DebugSymbol.Symbol>d2NDOlxQcm9qZWN0c1xUMlxUMlNlY3VyaXR5XFQyLldlYlNlY3VyaXR5XFQyLldlYlNlY3VyaXR5LkJ1c2luZXNzXFdvcmtmbG93c1xVc2VyUHJvZmlsZU5vblF1ZXJ5LnhhbWxsTQP5Aw8CAQFUC1RVAwG8A+0CC/ADFgMBrQLnAQvqAhYDAZ4BVwvkARYCAQLuAg21AxIDAe4CtgMNzwMSAwHQAtADDd8DEgMBvwLgAw3vAxIDAa4C6AENrwISAwHfAbACDckCEgMBwQHKAg3ZAhIDAbAB2gIN6QISAwGfAVgNnwESAgFQoAENuQESAgEyugEN0wESAgEU1AEN4wESAgED8QIT8QJzAwHvAvUCEYUDPgMBpgOIAxGzAxwDAfYCuQMTuQN5AwHRAr0DEc0DPgMB2ALTAxPTA20DAcAC1wMR3QMlAwHHAuMDE+MDbAMBrwLnAxHtAyUDAbYC6wET6wFzAwHgAe8BEf8BPgMBlwKCAhGtAhwDAecBswITswJ5AwHCAbcCEccCPgMByQHNAhPNAm0DAbEB0QIR1wIlAwG4Ad0CE90CbAMBoAHhAhHnAiUDAacBWxNbcwIBUV8RbzsDAYgBchGdARwCAVijAROjAXkCATOnARG3ATsCATq9ARO9AW0CARXBARHRATsCARzXARPXAWwCAQTbARHhASUCAQuCAxeCA30DAbUD+AIX+AJwAwGuA/0CF/0CaAMBpwOJAxOUA0QDAZcDlQMTogMcAwGIA6MDE7IDGAMB9wLKAxfKA30DAecCwAMXwANwAwHgAsUDF8UDaAMB2QLXA2HXA3QDAc8C2gMX2gN3AwHIAucDYecDdAMBvgLqAxfqA3cDAbcC/AEX/AF9AwGmAvIBF/IBcAMBnwL3ARf3AWgDAZgCgwITjgJEAwGIAo8CE5wCHAMB+QGdAhOsAhgDAegBxAIXxAJ9AwHYAboCF7oCcAMB0QG/Ahe/AmgDAcoB0QJi0QJ1AwHAAdQCF9QCdwMBuQHhAmHhAnQDAa8B5AIX5AJ3AwGoAWwXbH0DAZcBYhdiaAMBkAFnF2dwAwGJAXMTfkQCAXl/E4wBHAIBao0BE5wBGAIBWbQBF7QBfQIBSaoBF6oBaAIBQq8BF68BcAIBO84BF84BfQIBK8QBF8QBaAIBJMkBF8kBcAIBHdsBYdsBdAIBE94BF94BdwIBDJEDGZEDgwEDAZ8DjAMZjANyAwGYA50DGZ8DLQMBkAOYAxmYA4MBAwGJA6YDGaYDdgMB+AKqAxewAysDAf8CiwIZiwKDAQMBkAKGAhmGAnIDAYkClwIZmQItAwGBApICGZICgwEDAfoBoAIZoAJ2AwHpAaQCF6oCKwMB8AF7GXuDAQMBgQF2GXZyAgF6hwEZiQEtAgFyggEZggGDAQIBa5ABGZABdgIBWpQBF5oBKwIBYaoDZ6oDegMBhwOtAx2tA30DAYADpAJnpAJ6AwH4AacCHacCfQMB8QGUAWeUAXoCAWmXAR2XAX0CAWI=</sads:DebugSymbol.Symbol>
  </Flowchart>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_UserProfile_Add_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationUser_GetAll_3" sap:VirtualizedContainerService.HintSize="464,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_3" sap:VirtualizedContainerService.HintSize="464,62">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TerminateWorkflow_3" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_1" sap:VirtualizedContainerService.HintSize="464,210" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="486,498">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_2" sap:VirtualizedContainerService.HintSize="711,648">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_UserProfile_Add_2" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="If_3" sap:VirtualizedContainerService.HintSize="711,210">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_UserProfile_Add_3" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="If_4" sap:VirtualizedContainerService.HintSize="711,210" />
      <sap2010:ViewStateData Id="TerminateWorkflow_4" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_5" sap:VirtualizedContainerService.HintSize="711,210" />
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_24">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">0,314.5</av:Point>
            <av:Size x:Key="ShapeSize">200,51</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_UserProfile_Modify_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationUser_GetAll_4" sap:VirtualizedContainerService.HintSize="464,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_4" sap:VirtualizedContainerService.HintSize="464,62">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TerminateWorkflow_5" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_6" sap:VirtualizedContainerService.HintSize="464,210" />
      <sap2010:ViewStateData Id="Sequence_3" sap:VirtualizedContainerService.HintSize="486,498">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_7" sap:VirtualizedContainerService.HintSize="711,648">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_UserProfile_Modify_2" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="If_8" sap:VirtualizedContainerService.HintSize="711,210">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TerminateWorkflow_10" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_9" sap:VirtualizedContainerService.HintSize="711,210" />
      <sap2010:ViewStateData Id="TerminateWorkflow_6" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_10" sap:VirtualizedContainerService.HintSize="711,210" />
      <sap2010:ViewStateData Id="Sequence_4" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_25">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">260,314.5</av:Point>
            <av:Size x:Key="ShapeSize">200,51</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_UserProfile_Remove_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_ApplicationUser_GetAll_5" sap:VirtualizedContainerService.HintSize="464,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_5" sap:VirtualizedContainerService.HintSize="464,62">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TerminateWorkflow_7" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_11" sap:VirtualizedContainerService.HintSize="464,210" />
      <sap2010:ViewStateData Id="Sequence_5" sap:VirtualizedContainerService.HintSize="486,498">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_12" sap:VirtualizedContainerService.HintSize="711,648">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Db_T2_WebSecurity_UserProfile_Remove_2" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="If_13" sap:VirtualizedContainerService.HintSize="711,210">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TerminateWorkflow_9" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_14" sap:VirtualizedContainerService.HintSize="711,210" />
      <sap2010:ViewStateData Id="TerminateWorkflow_8" sap:VirtualizedContainerService.HintSize="200,22">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_15" sap:VirtualizedContainerService.HintSize="711,210" />
      <sap2010:ViewStateData Id="Sequence_6" sap:VirtualizedContainerService.HintSize="200,51">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowStep_26">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">510,314.5</av:Point>
            <av:Size x:Key="ShapeSize">200,51</av:Size>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="FlowSwitch`1_3" sap:VirtualizedContainerService.HintSize="70,87">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <av:Point x:Key="ShapeLocation">325,166.5</av:Point>
            <av:Size x:Key="ShapeSize">70,87</av:Size>
            <av:PointCollection x:Key="AddConnector">325,231.75 100,231.75 100,314.5</av:PointCollection>
            <av:PointCollection x:Key="UpdateConnector">360,253.5 360,314.5</av:PointCollection>
            <av:PointCollection x:Key="RemoveConnector">395,231.75 610,231.75 610,314.5</av:PointCollection>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Flowchart_2" sap:VirtualizedContainerService.HintSize="724,636">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <av:Point x:Key="ShapeLocation">330,2.5</av:Point>
            <av:Size x:Key="ShapeSize">60,75</av:Size>
            <av:PointCollection x:Key="ConnectorLocation">360,77.5 360,166.5</av:PointCollection>
            <x:Double x:Key="Width">710</x:Double>
            <x:Boolean x:Key="IsPinned">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="T2.WebSecurity.Business.Workflows.ApplicationController_1" sap:VirtualizedContainerService.HintSize="764,716">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="ShouldExpandAll">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>